import request from '@/utils/request.js'
export function listAllTenant(query) {
  return request({
    url: '/com/comTenant/listAll',
    method: 'get',
    params: query
  })
}
// 查询租户列表
export function listComTenant(query) {
  return request({
    url: '/com/comTenant/list',
    method: 'get',
    params: query
  })
}

// 查询租户详细
export function getComTenant(id) {
  return request({
    url: '/com/comTenant/' + id,
    method: 'get'
  })
}

// 新增租户
export function addComTenant(data) {
  return request({
    url: '/com/comTenant',
    method: 'post',
    data: data
  })
}

// 修改租户
export function updateComTenant(data) {
  return request({
    url: '/com/comTenant',
    method: 'put',
    data: data
  })
}

// 删除租户
export function delComTenant(id) {
  return request({
    url: '/com/comTenant/' + id,
    method: 'delete'
  })
}
